/**
 * 
 */
package commons.base.http.example;

import commons.base.http.JettyHttpServer;

/**
 * @author yuan<cihang.yuan@happyelements.com>
 * @since 1.7
 */
public class HttpTest {

	public static void main(String[] args) throws Exception {
		server();

	}
	
	public static void server() throws Exception{
		JettyHttpServer server = new JettyHttpServer();
		server.addServlet("/app", AppServlet.class);
		server.addServlet("/websocket", DefaultWebSocketServlet.class);
    	server.start();
    	server.join();
	}
	
	

}
